Avoid dereference of null TClass pointer

This pull request simply avoids a segfault if the property list is checked for a non-class data type.
This is a ROOT6 specific trivial bug fix.
Please merge promptly unless there are issues.