Fixed the unset variables that show PHP warnings and break the RSS events