Removed APPPATH_URI and BASE_URI as they were being injected into 3rd party themes.
Fixes #2519