Don't pass an array when a string is what is wanted...

Fixes the bad error handling in 47537

Bug: 47537
Change-Id: If34de5d78125eb64fbc2e1c2cf1a3a30cfc22018