Fix extension to work when no config is given

This fixes an error `'NoneType' object is not iterable` caused when no config is provided.