Fix crash when pos == -1

1 job for v20.07.90 in 19 minutes and 30 seconds (queued for 122 minutes and 26 seconds)
latest
Status Job ID Name Coverage
  Build
passed #60030
build_clazy_clang_tidy

00:19:30