This has already been fixed a long time ago before uploading it too Debian/Ubuntu, see [1]. My guess would be that you used an unofficial version.
[1] http://anonscm.debian.org/cgit/pkg-multimedia/openni-sensor-primesense.git/commit/?id=b16a0b9af4abc8792ef61b651cff1efc96ab61c8
This has already been fixed a long time ago before uploading it too Debian/Ubuntu, see [1]. My guess would be that you used an unofficial version.
[1] http:// anonscm. debian. org/cgit/ pkg-multimedia/ openni- sensor- primesense. git/commit/ ?id=b16a0b9af4a bc8792ef61b651c ff1efc96ab61c8