fixing build - checking if lastActivityDate is null