Handle empty urls NSArray

In some cases the user may end up with an empty urls NSArray, in which case the completion block is never called.
This commit handle such case to call immediately the completion block (if any)
Merge pull request #929 from kirualex/patch-2

Handle empty urls NSArray