Electrical response of molecular chains in density functional theory: Ultranonlocal response from a semilocal functional