I found a small error near comment "//Convert data from a stdClass" in models class. (in save method)
use
if (is_object($data) && get_class($data) == 'stdClass')
$data = JArrayHelper::fromObject($data);
else of
if (get_class($data) == 'stdClass')
$data = JArrayHelper::fromObject($data);
Because in the case $data is an array, it generate an silent error because of the redirection.