Fix firefox validation errors when opening add modal dialog.