added a verification that console var exists in window object before trying to output message
added a verification that console var exists in window object before trying to output message

Baptouuuu/Sy,Baptouuuu/Sy