Bug fix: getAttachment() now returns null after attachment deletion

This patch will resolve many problems related to applications dealing with attachments: getAttachment() should return null once the attachment is deleted. The corresponding test case has already been uploaded a month ago in RevisionsTest.java (couchbase-lite-android project).