Validate window dimensions

Because of atom/atom-shell#473 there are invalid window dimensions in the serialized state.

Instead of bumping and throwing away the bad state, I'd rather just validate the dimensions on save/restore so that the Atom window is never show off screen.

Closes #2872