Bugfix: Do not try to emit value after confirming modal if input is missing

Confirming modal resulted in an error if the modal haven't got an input.
We've fixed this by not attempting to emit the value if the prop `hasInput` is set to false.

https://github.com/owncloud/owncloud-design-system/pull/749