Added check to _bs_attributes_to_string so things like $aUserAttr = FALSE won't throw a PHP exception