Fix error when serializer gets files but no data