Anonymous Define fix to throw more helpful error
This addresses GitHub #240
When calling define() from a script tag, the error message defaults
to calling ___ on undefined. This is better explained as an AMD
error, where define() should not be used anonymously from within
the body of a script tag.
Includes test that ensures the error we get is AMD related.