[IM] Do not try to access CGI variables in CGI mode