Raise error in case of an empty selector inside :extend.