View.php: Fix notice for undefined _SESSION

Follows-up r103675 / f2caf1cdf20c which only replaced having two
notices (undefined _SESSION and loop over null) with one notice
(undefined  _SESSION).

Bug: 28826
Change-Id: I698120b5150d460ca328a139353050aa13fa651a