Fixed bug where rewriteIds() was being called with undefined attributes