Fix EZP-22366: Add missing cast on bitwise comparison

As $contentInfo['language_mask'] and $lang->attribute('id') are strings, a missing cast to INT is required to have expected behaviour on bitwise & operation. Reported on https://jira.ez.no/browse/EZP-22366