Value cleared on save fixed

This bug was introduced in 2a08660. Return null only if the $data variable is not an array NOR a string.

cc @PascalPiche
Re #31