Blocked empty patterns from being added to the whitelist.
Changed code to use 'input' event instead of 'keydown change', as it fixes pasting.
Merge pull request #59 from ashmind/usability-validation-urlpattern

Blocked empty patterns from being added to the whitelist.