Remove an incorrect and useless assert (fixes gh-535).