MYLOC-45 Improving detailTypes array type check in getLocation.