Fix JavaScript unit test regressions with file attachment deletion.

The recent change to fix deleting file attachments broke the unit tests,
which were never receiving a response back from the new ensureCreated
call on the draft. We now spy on that and fake a success.