Handled the null case in Number.convert() and Unit.convert()

Handle Null case in Number.convert() and Unit.convert() #24