FIX: ensures we don't attempt to concat an empty list (PR #10600)

GitHub