Fixed error checks in Node wrappers for LEDs.