Check sidebar conditional tag exists

Return false for non-existent conditional tags. Fixes #993
Merge pull request #1113 from roots/conditional_checks

Check sidebar conditional tag exists