Fix warning in bug https://github.com/jhipster/generator-jhipster/issues/611