PLD: check for obj before getting attr, closes #408