Fix dashboard's error handling on production servers.

Change-Id: Id1d1077be000cf0d5ae950f4fb7c5e1ae35bc488
Closes-bug: MRN-1124
Merge "Fix dashboard's error handling on production servers."