Bug 1111903 - [Settings] Refactor Dialog Service with l10n best practice...

...s
Although we've already checked the existence of input before calling to the method, but there would be a javascript error when input is undefined or null. 

I would suggest that when input is null we return `{id: '', args: null}`. When it is undefined, we should throw an error.