fix error-catching in nth-prime and queen-attack

Similar to #16, here are two more tests which attempt to catch an error, but aren't properly failing because of whitespace.