Core/Misc: Fix crash
Merge pull request #11469 from Dehravor/timetest-crash

Core/Misc: Fix crash