map-topology: Added NULL checks

  1. Added NULL checks in malloc
  2. Added a param in dump that is needed in accordance with tr181

Merge request reports

Loading