Should not try to focus on error input unless there is one.
Merge pull request #1479 from iwakura/master

Fix for autofocus in admin panel.