Fix error with empty contextCode
Merge pull request #72 from Prims47/master

Fix error with empty contextCode