Change exception to a warning if removal of console statement has possible side effects