Quaternionic quantum mechanics is consistent with complex quantum mechanics