[Bug]: data-id and data-prev were being processed even when empty

.. during form submission. Being null is not the same as being blank
Compactified form's HAML