Professors aren't included in the student count, so the only time the message is shown is when there are no students in the course. Once they invite students, be it 1 or 30 of them, the message disappears.