Checking if locale is provided before getting IWContext