Handle cases where publish isn't passed in.