Fixed the return value of fetchKeys in case of errors
Merge pull request #282 from stof/patch-1

Fixed the return value of fetchKeys in case of errors