Fix couple of bugs in WikiaMediaInsertDialog and WikiaMediaQueryWidget