Update agent_registration.rb

Fix node search
Merge pull request #133 from MurgaNikolay/master

Update agent_registration.rb