Avoid running ensure_android twice on failure