Corrected console detection for latest Firefox