Implemented FR #5152

last(x) where length(x)=0 returns 'x' instead of error. Test added + News updated.