Fixed null pointer exception in AppletLoader caused by cleaning up resources in the middle of a paint call. Thx to NateS for point this out and suggesting the fix.
Authored by: kappa1 2011-01-12
Parent: [r3465]
Child: [r3467]