Michael,
A property can be of type object and still not hold an object reference. This would be a property of type object with a value of NULL. You can fix your code to handle this by doing the following;
...
IF TYPE('thisform.topic' ) = 'O' AND NOT ISNULL(Thisform.Topic)
...