Fixed bug in UpdateTitle: generated a NullPointerException in applet