FIX wrong first return for id'ed undefined elements