Prevent Galleria error if NITF has no image

Don't know how to test that some text doesn't appears after some time.
I can wait until some text appears.
I can just wait for some time and check that the text didn't show up, but that wouldn't be a real test. The browser could be slow.