Fixed an issue where element is not found when painter accepts null as element id