Fixed a bug in session deletion.

Due to the way everything is interconnected, we have to pass in the
course that’s being removed so that we can silently remove it without
affecting it on the UI side until the database call has actually
completed.