make sure an error is set before printing it

The C call for `gt_feature_index_get_first_seqid()` in the scripting language bindings can return NULL in a non-error case (i.e. when the index is still empty). This must not be treated as an error condition in the scripting language bindings.