Fix PHP notice on new messages