Improve stream error handling
Improve stream error handling

Prevent unhandled errors from occurring while also preventing the
callback from being called multiple times.

Signed-off-by: Kevin Locke <ffb4761cba839470133bee36aeb139f58d7dbaa9@kevinlocke.name>

kevinoid/swagger-spec-validator,kevinoid/swagger-spec-validator,kevinoid/swagger-spec-validator