Making StampTE more robust towards invalid input.