Throwing Exception if Display is not created