check if there are errors to return after stripping unknown properties
Merge pull request #171 from HughePaul/bug-170

check if there are errors to return after stripping unknown properties - for issue #170