This can easily be done with default PHP functions.
// Loop through all fields, grab the content and assign it to a new array
foreach ( get_post_custom() as $custom )
$new_custom[] = array_shift( $custom );
// Get rid of empty fields
$new_custom = array_filter( $new_custom );