ConsoleLayout: Fix a bug introduced in 3a85522 that make remove of layers and interactions throw a NullPointerException.