Handle NULL conditions of display and terminal allocation.