Fix Issue #1277: Avoid premature deletion of ResourceObject (which my be still being referenced by some other object handling some signal) by using deleteLater instead of delete.

See: https://code.google.com/p/wkhtmltopdf/issues/detail?id=1277&thanks=1277&ts=1384369930