spice: monitors_config: check pointer before dereferencing