compositor: Don't try and use a NULL sprite for the device pointer