Fix NotFoundException being thrown instead of a ParameterNotFoundException