|#1280 |+Balvinder | Fixing jasmine, checking is list not null or undefined or empty before converting to map