bug fix - don't log to console when console is not available