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.