Prevent returning map as boolean false

map property should be undefined if there is no sourcemap to provide