added error handling because of null pointer on multiple marker click