Update README.md

Corrected example (tested).
Update README.md

Check if result is not empty instead of error.
Merge pull request #1 from nsgundy/patch-1

Example corrected in README.md