[Issue #1592] Replacing NSParameterAssert with early nil return if session was unable to create a task