Updated dropdownify() function

Fix an error that would occur when running the dropdownify() function on
(a) parent nodes that do not have any attributes on them
(b) <select> nodes that do not have the `data-dropdown-attributes`
attribute