Support for null in SubStatement asVersion and unit test