Fix dumper by avoiding empty frames