Added error checks for OpenNI calls