fixed an issue where we would throw if no main script was defined in a passive extension