shell: sensors: exit on failure

Immediately leave the read command if sensor is not initialized.

Otherwise the board just hangs after the error message.