Fix an issue if locations where null in response from backend
Small fixes on style and JS code when locations had not lat/long