Fix `defaultPrevented` tests for Android 2.3

This property is not present in Android 2.3 so it shouldn't be used in
tests. Instead, use `isDefaultPrevented()` which is guaranteed to be
cross-platform.