Workaround angular validation bug in firefox.