JBIDE-15512 CordovaSim: Fixing NativeSkin Layout bug. Adding dispose listener to prevent permanent native crashes.