Fix for long-forgotten selection validation.

Had someone not set a previous selection, things could get nasty...