fix blocks crash if curl extension is not loaded

curl is required by the facebook php sdk which is used at present
by only one block. Now only that block is effected, not the entire
module.