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

This restores compatibility with v3.4.x.

/cc #1675