Fix: formatEl so that it handles empty elements