Fix invokeLifecycleCallbacks on still dirty record