avoid null-pointer-exception when querying a gmlid that exists in the DB but does not belong to a top level feature