Fix that calling ActionController::translate() throws an exception

Translating strings must not throw an exception
even if the given domain is not valid.

fixes #6432