Issue #2503409 by dimaro, DuaelFr, lluvigne: Replace deprecated usage of entity_create('block*') with a direct call to Block::create()