Avoid code duplication for Language::isValidCode
r81335 changed the way we validate language code by introducing:
strcspn( $code, "/\\\000" ) !== strlen( $code )
That code was later made a function in
r81340 but some conditional tests were
not updated to reflect this change.