Returning any languages that can be parsed out of a malformed string. Added test coverage for some current cases causing errors.