Fixed by commit https://github.com/richtr/deviceorientation/commit/8bc2f058985712194d1128c2474d0a6c908af33a.