Make `AssetStore` return Err when empty

Prevents `AssetStore` from crashing task if empty.