currentScript should be truthy, not !== undefined
currentScript should be truthy, not !== undefined

in some cases document.currentScript can be null, on that case the
condition resolves to true and fails to get the src attribute from null
ending with an exception.

this change checks that currentScript is truthy (not null nor undefined)
in the condition

closes #625

tangrams/tangram,tangrams/tangram