Couple more bugs fixed.
Merge pull request #6 from janher/master

fix for NullReferenceException in attachProvinceUser