stringify empty attributes correctly (#616)