Use apiRequest() function in MWMediaEditDialog

Change-Id: I4fbc3f2080660b217beb502c6cf3007197627a14