Fix error when attributes don't exist at all

Issues DE186