Fixed NullPointerException in function isEnabled() when looking for elements with empty readonly attributes.