Handle timekeeperSingleton being nullptr in within()