Fix publishing by getting the content from the correct element

Change-Id: I88c65093b7517eaa7588f7a446b6ebe79ec84c0e