Make sure device exists before adding capture callback