Protect against erroneous attachment documentID