Added null-check necessary when a markup extension without a wrapper is ...

...added to a collection.