Added check to suppress error message in toggle sidebar during installation.