only add value to hash if attr_element hash text

The gem was raising an exception when in the callback there are elements without content, like:

<Element />

In those cases the following is raised:

undefined method `lstrip' for nil:NilClass

Regards.