Add missing return statement.

Fixes issue 5541.