Fix iOS touch issue in touch layer

Fix af.popup positioning when starting transition
fix bug when calling $.ui.hideModal when no modal window was shown.