Flex and ArrayCollection – Error if xml has only one node

My collleguea had a bug in his Flex application when a rss feed only contains one item. It seems that Flex does not handle this very well when using the ArrayCollection class.

If you have the same problem, you can fix it like I did below.