shell: Guard against accessing Settings prematurely

Fixes #1237
Closes #1285
Reviewed-by: Stef Walter <stefw@redhat.com>