This is caused by the fact the .import files being created have valid=false set in them,
which causes _test_for_reimport to return true.
We should have a somewhat saner way of handling resources with missing dependencies, and reimporting the resource when it's dependencies change or become available/unavailable