Catch this exception in case the locale doesn't exist

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>