Added null handling to SubStatement asVersion