Fixed "Null Pointer Exception" for dependency without version

Fixed "Null Pointer Exception" for dependencies without version, eg.
```
compile group: 'org.hibernate', name: 'hibernate-validator'
compile("org.springframework.boot:spring-boot-starter-actuator")
```