Fixed in commit https://github.com/richtr/deviceorientation/commit/df7e00836af448353eba63308362411354c21785#diff-e6cf28c351321ab228ede51db9f0a688R4.