Teaching physics to neural networks removes 'chaos blindness'