Don't update metadata when there's no file
Don't create an asset when there's no file
Tests