Fixed a bug with empty asset list

A small hotfix.