Update to handle error condition and casing of parameter

# device.rb
Surrounded the code with a begin / rescue block

# dimmable_light1.rb
Fixed the case of the newLoadlevelTarget parameter