Avoid calling first() on a temporary list, to keep analyzer calm

Authored by kossebau on Aug 22 2018, 1:23 PM.