Fix crash when no global context is supplied, no handler context is supplied, and a layout template is being used
Merge pull request #17 from Torsph/fix_missing_context_crash

Fix crash when no global context is supplied, no handler context is supplied, and a layout template is being used