Minor fixes

Added a null check for factoids to fix bomb on startup when no factoids are present.