silverlight - null reference exception fixed