Set -1 if the position is null

As per discussion at https://github.com/slapperwan/gh4a/commit/a7793d67ea1df6038c0894d1035d55a4cff71e2d#commitcomment-6545122