Fixed NullRefException
(grafted from e32569cbf96d1edaf4e68ada468ff7648b0c0bc3)

--HG--
extra : source : e32569cbf96d1edaf4e68ada468ff7648b0c0bc3
Merge pull request #576 from iskiselev/NullRef_F#

Fixed NullRefException