Update Canonicalizer.php

`null !== ''`

Checking for null is used in particular in the validation