Throw an exception if a map div is not found and test for initialization exceptions

Simply adds another exception-throwing check to Leaflet where otherwise it would produce a confusing error, and uses `throwsException` to check that Leaflet throws the proper exceptions.