Fixing warnings in solid mechanics module.

@backmari, can you comment on why you compute all these values but
they aren't used for anything?

Refs #1777.
Merge pull request #3820 from jwpeterson/fix_warnings

Fixing warnings in solid mechanics module.
Merge commit '27ac890d617d027c50c04ea02db4bea91dffa018'