Proceed with updating only if search successful
Merge pull request #250 from kbidarkar/fix-update-func1

[Master corrupted on JAN 03] Proceed with updating only if search successful