Fixed bug in 'formatVersion'

Version arguments with the value 0 where filtered out.
callback function added to prevent values that are not null to be filtered out.