[BUGFIX] Exception thrown in TypeHandling
When using isCollectionType() on an unknown class, an exception is
caused by a warning PHP gives about that class being unknown.
The issue has been introduced together with the patch
This adds a check that the element is a known class before using
is_subclass_of() to prevent the exception.
Releases: master, 2.0, 1.1