Add missing return - closes #1114
Fix locale object getter, closes #1113