draw/gs: fix emitting inactive primitives crash