Ensure models in the dirty list exist before saving

This mitigates concurrency issues noted in #62 until #35 is resolved, which should fix this problem.