The effects of viewing angle on the inference of magnetic shear in preflare active regions