VE-1351 Modifying the method to fail immediate if the dialog is not in empty state when expect it to be