gtk+-3.0, gtk+-2.0: make TargetList constructor argument nullable

Fixes bug 728126.