Fix for "No theme CSS loaded", when galleria is loaded dynamically through JS and AJAX
Galleria may be inserted into the dom dynamically (e.g. via JavaScript loaded from an AJAX-Request). In such a case, the theme's script-tag seems not to be immediately present in the DOM when the addTheme-function looks for it. We therefore try multiple times before raising an error.