Bug Fix: prevent javascript error when callback doesn't exist.