ladda-ble buttons outside <form> must remain ladda-ble as well

Fixing getAncestorOfTagType() func to make it return only matching type element.