Added check for presence of Core object

All javascript objects which register with Core now check that core is
defined before attempting to call its add() method.