When ModRewriteHelper tries to find default item template using correspoding
custom field value in category, it uses English (language with id 1) instead
if using primary language translation. It's very uncomfortable if you have
other language set as primary, as you can't understand why custom field
value is filled in category edit form, but it doesn't affect anything.
Attached patch fixes the issue.