[#916] Only access Cleaner if it is really present to prevent errors on android