remove key-value from attributes if value is blank (fixes #12).