Fix for bug#2861: areObjectsEqual doesn't check if storedMatch==null.