Add transit plugin check to prevent error