Only add property to relationfactory if !=null
changed compatible versions for 0.3.0