added protection to create invoice
Merge pull request #229 from Useful-Innovation/johans-fixes

added protection to create invoice