Fix non object error when invoice id is not valid
Merge pull request #112 from jfrabaute/fix

Fix non object error when invoice id is not valid