Bug fix. Need to update the last event time with every app heartbeat. The event time can also be null.