Better error handling when initializing without data

Right now when initializing the map with a data coming from async source (like a JSON request) it throws an error when you initialize without data. This just makes sure that no errors are thrown.