Fix error when using datepublisher extension

In some cases, when datepublisher extension is used an another extension tries to modify the admin, it's crashes because datepublisher returned a tuple.