Enable the possibility so  maximize(false)

It was using "this.maximized = maximized || !this.maximized;" but this
form doesn't work for non-object values. Now it uses a ternary operator
with a check for undefined and null values.

[VDI-1659]