Added missing return when ruletype can't be found