Misleading error message 2069

Fixes #2069 - raise an error in case of an empty extend selector.