thumbs: fixed error when invalid path given