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) {` branch

````groovy
if (!cp) {
    return null
}
````