camera: prevent sending invalid commands to front camera