Axes.get_lines() changed its behaviour when error bars are plotted in version 2. This change covers both versions.