Fix #434. DocumentParser::convertLanguageArray() to return success (1) or fail (0)