Ensure mPreparedEdit in WikiPage gets cleared if set.

Depends on I770bf2d in core and fixes breakage in Wikibase due to I2c34baa

Change-Id: I4f7ea1d9a162ed99870144023ceb8cde2affae22