fix bug where not passing options or passing null would crash application

Test code: (using sample application)

`wizCanvas.hide("newCanvas");`
`wizCanvas.show("newCanvas");`
`wizCanvas.hide("newCanvas", {});`
`wizCanvas.show("newCanvas", {});`