Remove call to deprecated MWInit::methodExists with method_exists

MWInit::methodExists was deprecated in 1.22.

Change-Id: I5bbda455c64afa8ac0c9f7d1af03c4c57cff06ca