fix toggling of opshelf publish/unpublish stuff (bug 1035455)