Check that currentView exists before accessing its children

Fixes #563

Signed-off-by: Ryan O'Hara <oharar@email.chop.edu>