Return UINT16_MAX on error from read_register() and read_cmos_register() - fixes #367
Check actual ctx pointer for NULL in freenect_init()

Signed-off-by: Benn Snyder <benn.snyder@gmail.com>