Fix that should avoid NPE when update dependency button pushed manually by user

@vparfonov