Fix error when attributes don't exist at all

Issue DE186