Empty console usage fix (#354)

This PR supersedes #354