Fixed bug which prevented the lib from dealing with orientation changes properly (the action mode was lost, and if a long click was performed afterwards the app crashed)