raise assertion error if output is falsy

No error was being raised when output was {}, but the following line
"output.split('\n')" raised an AssertionError.

Change-Id: I37d27f8b890941d9333e71c64b1af6127505d766
Merge "raise assertion error if output is falsy"