added validation of matrix generation input to rule out "without a single statement" input (e.g. valid semantic markup input)