Added removeNullsFromMap method