Catch uncatched Reflection exception for bad type hinting in object

Related to https://github.com/raulfraile/ladybug/issues/58

Opening this PR for further discussion
You are right, I just copied the code from the original reported of the issue

I very much prefer your approach :)