Core/Scripts: Fix possible NULL dereferences

Fix possible NULL dereferences probably caused by a typo.
Merge pull request #11272 from gerripeach/pull_request6

Core/BG: Isle of Conquest - fix worldstates
Core/Transports: Log an error if a Transport has no GameObject template

Log an error if a Transport has no GameObject template from `gameobject_template` table instead of dereferencing NULL .
Merge branch 'master' of github.com:TrinityCore/TrinityCore
Core/RBAC: Fix rare NULL dereference

Fix a rare NULL dereference happening if 'rbac_default_permissions' table has secId "255" as first row.
Core/World: Remove unused code

Remove unused code added in f20b25d1c90f608deab28c9957b3b376ab2a0d50
DB/SAI: More EAI to SAI conversions.
DB/SAI: more EAI to SAI updates.
DB/SAI: More EAI to SAI
DB/SAI: More EAI to SAI updates.
DB/SAI: EAI to SAI conversions.
DB/SAI: Fix errors in last commit.
DB/SAI: The last EAI script is now converted to SAI.
Core/AI: Good bye, Good bye my beloved EventAI system :(
Core/RBAC: Added missing changes in 6e13263c7a0ae4c8eecdf4fd9560339e2d3d9787
DB/SAI: Move cpp script for npc_arete to SAI.
Scripts: prevent some runtime errors
Core/Misc: Removed more unused eventAI stuff
DB/SAI: Remove some Smartscripts for npcs already scripted in cpp
Update 2013_12_01_02_world_command.sql