Having a minus in the related game ID causes the game ID to be handled as if it was valid.
Meaning, an id of -16000 is currently considered valid ID even though it doesn't point to any game and generates a relation to [undef--16000].
Fixed and added some little improvements too.