apply some defensive coding against broken attachment entry #FTDUEDTR-1361