Update Form/Extension/WidgetCollectionFieldTypeExtension.php

before: 
@$form->getAttribute('allow_add')
after:
$form->hasAttribute('allow_add')