possibility of passing undefuned/undefined to openCreateDialog() when var getLocation is not called by googlemaps yet.