fixing skip-null cmdlet