NXP-11142: make DAM test safer, to avoid rendering actions on a null document model when logging out (when ajax request is not done yet...)