Update util.lua

Fixed problems with CurTime, RealTime and FrameTime being nil.