imdb: Handle errors correctly.