Refactor register save/restore
Suppress errors when restoring invalid registers

Particularly for * and + registers when clipboard support is not
present.

Fixes #31