Fix force close on android when acquiring wakelock