Adding feature detection for sourceURL in Scanner

Fix inspired by Lodash's [fix](https://github.com/lodash/lodash/commit/fadcc4c61760bcf91da288580033c5d05de8ca98) for a very similar issue.

When conditional compilation is on, `useSourceURL` will be undefined and the `@sourceURL` comment will not be added to the compiled template.