Fixing potential crashing bug where we are not checking the error condition of the filter before running the surface mesh data check.