complete on % for magic in notebook

fixes #3954
fix completion when shared start among completion item is null
Merge pull request #3955 from Carreau/fix-3954

complete on % for magic in notebook