Fix for PR 14965: Better error message for GEP with partially defined contents