avoid NullPointerException if lang parameter is not set