publisher: Fix Python 2 build by catching ValueError on import

This will be fixed in a better way by moving the non-module objects
outside of the module soon.