Fix for empty location on $stateParams