gallium/drivers: Sanitize NULL checks into canonical form