Bug Fix in module helper #3826

Make sure that $attribs is a array and not a string that give warrings in php 5.5