BMC#19009: Multi-popup JS dialogs conflict
BMC#19009: Multi-popup JS dialogs conflict

The order of CompleteDialog(show next dialog) and CloseDialog is wrong.
It make the new dialog dismissed. Change the order of this two function
calling.

Reviewed by YinLi

wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser