fixed a recurring NPE when loading swf with dependencies

thx to review :)