fix getting properties for references

ran into another issue now when using references (block references an image) and the property is not set ...
/cc @dbu