fixed issue with not executing completion block when URL is nil