getWidget() should not fail if constrained property is null

You could reduce the nesting and simplify the code slightly by adding the following as the first line and then remove the `if (cp)` test
````groovy
if (!cp) {
    return null
}
````