Error handling in broken SLS file.

Closes #15693