Use notFoundError in one more place

Introduced it so that there wouldn't be code duplication, forgot to
remove the code from its original home.