Changes to beautify filters to handle changes to avocado API

Tested on Varify
Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
`cleanedValue` should always be undefined if it was not set on the server, so this second check for an array should not be necessary.