Prevent NPE when missing output parameter
Merge pull request #1 from antonsarov/master

Prevent NPE when missing output parameter