Protect TPadEditor against possible non-TPad object passed as argument (fixes Jira #ROOT-6375)