Fixed #1504: Debug toolbar isn't loaded successfully in some environments when xdebug is enabled