Fix last_activity order if no last message