Add not empty containerBlockTypes condition 

Made a sql error when I try to modify a block gallery when no type is specified. The not empty condition solved this issue.