Fix javascript errors when monitoring dead instance