Issue 1389 - Discourse: Don't run queries for site settings if the correct value is already set

--HG--
extra : rebase_source : 888c3e1c6ad5b16261b036c273f9e8009b106bbb