WELD-1498 ClassCastException when proxied class return this

Check return type of proxied method