SERVER-14502 remove unnecessary check for NULL canonical query