Fixed incorrect use of optional_param. Fixed the double-header bug when configuring a block in the front page, as reported in bug #2440. Credits to Dan Marsden for the report and the fix.