CanvasContext.Type.is* checks to make sure pram is not null
Merge pull request #13 from nbutton23/Nullpointer-check-in-CanvasContext

CanvasContext.Type.is* checks to make sure pram is not null