ChromeOS: Fixed bug in debug message logic being inverted and possible undefined dereference