Update ShareDialog.js

Handle situation where edit might be first url parameter