check for empty namespace
check for empty namespace

Prior to this commit it was possible to pop from an empty list,
generating an IndexError

myint/cppclean,myint/cppclean,myint/cppclean,myint/cppclean