Revert "Check if node is element in widget.getByElement."

This method is supposed to be used with elements. If not an element was
passed it means that the code outside it is incorrect and it should be
checked and fixed.

This reverts commit ca144d2f79a4841ee21b476d5ab6404b14967142.
API docs corrections.