add check for null node to media viewer