Fixed bug in _auto_publish to handle course root not being published