Added variable validation before output patch. Fix for Linux.com
Merge pull request #97 from mlabrecque/7.x

Added variable validation before output patch. Fix for Linux.com