FIX: Attempting to select uninitialised tab on validation error (fixes #1783)