Error handling in broken SLS file.

Closes #15693
Merge pull request #16113 from cachedout/issue_15693

Error handling in broken SLS file.