Fix: Weight is null when adding a new block

Related to view refactoring where we unify add and edit views.
Closes #479