Update cms_toolbar.py

Fixed boolean expression that didn't check if self.page was defined, which broke the CMS toolbar on non-CMS pages with static placeholders.