Don't set the missing key on Error messages hash

Fixes #12248 - Calling ActiveModel::Errors#[] changes state of the message hash for no reason.