resize event test for null canvas