Fixed issue where the UserControlLogic could cause dispatcher exceptions in WPF