Short answer seems to be that the responsibility is on them to anticipate the possibility that they might have an allergic reaction and order something else or go somewhere else. See this article for more: https://www.japantimes.co.jp/community/2017/03/05/how-tos/whats-visitor-food-allergy-japan/#.WbCAp8iGOUk