fixes #4359 Translations for some content types throws error

Fixed the issue and pushed code for review, please check it.