[webui] Make adding issues to patchinfos more stable

- fixed errormessage after adding a wrong issue-format
- added more checks for adding issues to patchinfos
- added more testcases for adding issues
(fixes http://errbit-opensuse.herokuapp.com/apps/50ab7f571e060e0008000001/problems/50fd0fc8b4cffb00070000bc )