Check sidebar conditional tag exists

Return false for non-existent conditional tags. Fixes #993