[bootstrap] Add a test for invalid script tag src & fix handling of them
via an onerror listener.