Add reference from packageHandler to activityHandler
Use nil instead of NULL for Objective C objects