device: Guard public API
Fixes the crash reported in #62, but does not treat the underlying issue.
Fixing the actual issue would be making the camera switching a NOOP (from what I can see), but this is the best I can offer (being unfamiliar with the codebase).
Edited by Evangelos Ribeiro Tzaras