Improves isa checks in UserAgent/UeberAgent.pm