fixed a recurring NPE when loading swf with dependencies