Printing out dart2js errors; better redirect on invalid id