Self-adjoint subspace extensions of nondensely defined symmetric operators