handle wrong iso code in dashboard stats api

Not really sure how one should handle errors like these, but here is my go at it.
This problem should never occur anyway and was happening this morning due to an error in my JavaScript.