Resolve "Goal detection during penalty kick does not work"

Closes #1689

See merge request main/Sumatra!1454

sumatra-commit: c2fcc89547446cbb7adfaa4e649a1d0e15d99927
2 jobs for master in 4 minutes and 13 seconds (queued for 7 seconds)
Status Name Job ID Coverage
  Build
passed build #70695

00:03:06

passed test #70696

00:04:13