Include #[] and #read_attribute with missing attrs

[ #1908 ]
Don't allow readonly documents to be deleted.

[ #1908 ]