[TIMOB-10017] added null check for windowActivity

TIMOB-10017 - Made sure that windowActivity is not null before calling setBackgroundDrawable.
Test case is running without crash after the change