Do not crash on NULL viewpage