Fixed check on NULL pointer.
Fixed check on NULL pointer.

In line 97 the returned element can be NULL. This is now checked for
and avoids a sigdev.

TheImagingSource/tiscamera,TheImagingSource/tiscamera,TheImagingSource/tiscamera,TheImagingSource/tiscamera