MODULES-1800 - fix case where ensure => latest and no revision specified