Update planepacker.js

Fix bug that a missing image causes us to hang.