Fixes for constructing details page url with null or invalid location fields.