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.