Check the DiscreteProblem for zero number of DOFs. fixes #85.