[Canvas] Remove redundant null check

Return value of getViewInfoForCanvas cannot
be null as of 0805488b8eec19eacafe10fb420bb3f6ed429c08,
so remove check for null introduced as working
solution in 3b70a97130b049c5ae38c9068a09cd34b44ba556