Only assign callback if Gmaps.map exists. Fixes user profile issues