check for defined constants
Merge pull request #1762 from Remo/patch-2

check for defined constants
revert

https://github.com/concrete5/concrete5/commit/71544e016479754da0dfc048f2f5ec6d5a944fe7