Guard around dispatch_resume() being called with null pointer, as warned by the static analyzer.