Only selectAll if there's console content

Because this causes the entire page to be selected when it's loading :-\

Fixes #1979