[#1405] return null if element has no parent.