re #899 - Fixed error when no attachment is added