Fix doc builds in release builds

Change-Id: I053437327f0497919f367f784cdf177951cc2d83
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>