[bug] default settings fallback for dynamically added alert-boxes

when adding alert boxes dynamically, the settings option on the alert-box is empty and throws an error when trying to close the alert-box:
> Uncaught TypeError: Cannot read property 'animation' of undefined 

this change allows to fall back to default settings, which otherwise are not accessible