Surface::currentSurfaceBuffer can be 0

Change-Id: I107f74dbabb5d8192d44f3f76dc38852928847b9
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>