Fixed closing AddClassActivity on Cancel button

Fixed the closing of AddClassActivity when user confirms they want to
close after clicking the Cancel button.