Fix error message for missing include

This fixes an error where the wrong SLS target would be reported as
missing, when a missing include was encountered.

This is fixed upstream already, this commit just brings the relevant
part of the fix to the 2014.1 branch.
Merge pull request #15361 from terminalmage/fix-missing-include-2014.1

Fix error message for missing include