LP1849212: don't send empty courseId arrays to pcrud