MO:blocklayered

Added an extra typecheck to fix a bug http://forge.prestashop.com/browse/PNM-1573