Fix annoying errors

applied commit https://github.com/SlimRoms/packages_services_Telephony/commit/43f18834573505ad4152c6d55fac21773a62e45d as well.