Make it safe to pass nil to Language.find_by_name/alias again

This restores compatibility with v3.4.x.
Merge pull request #1695 from github/nil-safety

Make it safe to pass nil to Language.find_by_name/alias again