Swap comparison order to avoid NPE if second event arrives after capturing the first.