Fixes after 8cef6b837e3d274582b8ab2b92542b1a5baf2af2

- alert was empty if there was no description
- closing could cause JS errors upon XForms updates
Minor: style consistency