Add a descriptive Exception if symbols iterator runs out of symbols

Fix for #7466