Fix form dialog in case jqModal is false