Fixed mainLanguage detection in ContentService

This pull request fixes what is reported in [this comment](https://github.com/ezsystems/ezpublish-kernel/pull/170/files#r3039296) in https://github.com/ezsystems/ezpublish-kernel/pull/170.