Don't crash retainer api when retainer is disabled