Quickfix for #4434 when storing PQ results filtered by StateNotStoredFil...

A first quickfix that prevents any crashes. Doesn't solve the bigger problem yet, although that bigger problem doesn't have any visible effects anymore after the quickfix.