Fixed "Null Pointer Exception" for dependency without version