Various little optimizations to maps service user agent detection
Added if address check to only replace existing HTML with a returned address