Fix bug found by @andershedstrom.
Was able to test the fix by modifying an existing test case.
Merge pull request #45 from milosimpson/chainr-context-bug

Fix bug found by @andershedstrom.