Handle the case where locking the screen orientation is not supported.
Merge pull request #9 from mounirlamouri/not_supported

Handle the case where locking the screen orientation is not supported.