Fix a bug in fetchNumIidFromUrl in TaskAction.