Fix NotFoundError's constructor property.

The correct subclassing pattern is to set the prototype's `constructor` property after setting up the class's prototype. NotFoundError's constructor should remain `Function`, since it is an instance of `Function`.
Merge pull request #1998 from eventualbuddha/fix-not-found-error-constructor

Fix NotFoundError's constructor property.