Merge "Don't throw an AssertionError on invalid input."