Ensure empty resource names are ignored during loading.

Progress on #25.
Merge pull request #159 from nicksay/remove-script-style-transition-code

Ensure empty resource names are ignored during loading.