Fix issue where globalize breaks has_many through

Any time you were using where on a has many through association
with a model that doesn't use translates, an exception was being thrown
because translated_attribute_names wasn't defined