Changed return first to return firstordefault.

To prevent an NullPointerException by trying to return the first value
in an empty list.