Merge branch 'stable-2.8'

A couple of commits from master accidentally got included in
the stable-2.8 branch, and have been reverted there.

This merge is done with strategy 'ours' to prevent those reverts
from happening on master, where the commits are actually wanted.

Change-Id: Ie1c16ca13d397483e36759370805bcfb8e83fedb