Added check for 'bad' (empty) subsections in publish.py.