Misc fixes
Things I changed while working on netreplays which may be useful for vanilla:
- Changed replay resyncing code to offer a bit of leniency when the exact position isn't being stored. Also stores the exact position periodically to make resyncs a tiny bit more accurate.
- Added a null check in rendering code that seems to fix a crash idk lol