:Fixed NullPointerException that occured because params was never set to...

Fixed null-reference-exception that occurred when LayoutParams where null. After the value was checked for null the Layout's parameters were set, but not the "params" variable itself.