not sure how it was before but this works in rhino. 

if (this && this.console && this.console.log)   works as expected. and console returns nothing.