Correct behavior when dealing with courses which don't have an -00x suffix.

Early courses (See: coursera.org/db) don't have any suffixes.
Later courses (See: x-001, x-2012-001) have inconsistent suffixing.

This should get rid of all "-#" suffixes without throwing ValueError as .rindex does when there are no suffixes.