PERL-336 createIndexes fix for additional error code