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

## Ready State: Yes
#### JIRA Reference: https://imagex.atlassian.net/browse/LDC-706

Supressed error ouput by validation of variable, specfically, the stdClass::$num_topics variable, which was attempting to output an invalid value.